/*
 * @Description: 预约单底部操作   ReservationOrderOperation
 * @version: 
 * @Company: 
 * @Author: ZhengZhuang
 * @Date: 2019-08-29 11:44:44
 * @LastEditors: zhengzhuang
 * @LastEditTime: 2020-08-04 08:57:37
 */
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:C20Driver/routers/navigator_util.dart';

class ReservationOrderOperation extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      width: ScreenUtil().setWidth(750.0),
      height: ScreenUtil().setWidth(140.0),
      padding: EdgeInsets.only(
        left: ScreenUtil().setWidth(20.0),
        right: ScreenUtil().setWidth(20.0),
      ),
      color: Colors.white,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        children: <Widget>[
          MaterialButton(
            minWidth: ScreenUtil().setWidth(150.0),
            height: ScreenUtil().setWidth(100.0),
            child: Text(
              '拒单',
              style: TextStyle(
                fontSize: ScreenUtil().setSp(30.0),
                color: Colors.white,
              ),
            ),
            color: Color.fromARGB(255, 89, 90, 108),
            onPressed: () => NavigatorUtil.jump(context, '/rejectionOrders'),
          ),
          MaterialButton(
            minWidth: ScreenUtil().setWidth(520.0),
            height: ScreenUtil().setWidth(100.0),
            child: Text(
              '接单 13秒',
              style: TextStyle(
                fontSize: ScreenUtil().setSp(36.0),
                color: Colors.white,
              ),
            ),
            color: Color.fromARGB(255, 255, 153, 0),
            onPressed: () => NavigatorUtil.jump(context, '/pickUpPassengers'),
          )
        ],
      ),
    );
  }
}
